extends "../i_TD_mitt_Hide/i_TD_mitt_Hide.gd"

func init():
	.init()
	name = "魔护手套"
	resetdata()
	info = info + "虚空汲取：使用技能时，会为自身及1格范围(十字)内所有友军附加20%物攻护盾，10%概率再使用一次技能\n"

func _connect():
	._connect()
	masCha.connect("onCastCdSkill",self,"xkjq")

func xkjq(id):
	var chas = masCha.getCellChas(masCha.cell,1,2)
	for i in chas:
		i.changeShield(masCha.att.atk * 0.2)
	yield(sys.get_tree().create_timer(0.01),"timeout")
	if sys.rndPer(10):
		var sk = masCha.getSkill(id)
		sk.nowTime = sk.cd